package com.orm.session;

import com.orm.mapping.Configuration;
import com.orm.mapping.MapperStatement;

import java.util.List;

public interface SqlSession {
	
	Configuration getConfiguration();
	
	<T> T getMapper(Class<T> clazz);
	
	
	int insert(MapperStatement mapperStatement, Object[] args);
	
	int update(MapperStatement mapperStatement, Object[] args);
	
	int selectCount(MapperStatement mapperStatement, Object[] args);
	
	Object selectOne(MapperStatement mapperStatement, Object[] args);
	
	List<Object> selectList(MapperStatement mapperStatement, Object[] args);
}
